﻿using SIG.Data.UnitOfWork;
using SIG.Infrastructure.Cache;
using SIG.Model.Case;
using System;

namespace SIG.Data.Repositories.Case
{
    public class WorkRepository : Repository<Work>, IWorkRepository
    {
        IMainBCUnitOfWork _unitOfWork;
        private ICacheService _cacheService;
        public WorkRepository(IMainBCUnitOfWork unitOfWork, ICacheService cacheService) : base(unitOfWork) {

            if (unitOfWork == (IMainBCUnitOfWork)null)
                throw new ArgumentNullException("unitOfWork");
            if (cacheService == (ICacheService)null)
                throw new ArgumentNullException("cacheService");

            this._unitOfWork = unitOfWork;
            this._cacheService = cacheService;
        }
    }
}
